<!DOCTYPE html>
<html>
<head>
<title>用户表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<a v-if="hasPermission('sys:userinfo:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a v-if="hasPermission('sys:userinfo:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a v-if="hasPermission('sys:userinfo:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.name" placeholder="名称"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">手机号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.phone" placeholder="手机号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">头像</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.headImgUrl" placeholder="头像"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">性别，0 未知，1男，2 女</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.sex" placeholder="性别，0 未知，1男，2 女"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">微信OPENID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.openId" placeholder="微信OPENID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">用户类型，0 普通用户，1 司机, 默认0</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.type" placeholder="用户类型，0 普通用户，1 司机, 默认0"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">钱包</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.wallet" placeholder="钱包"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">积分</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.integral" placeholder="积分"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">生日</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.birthday" placeholder="生日"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">用户等级</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.level" placeholder="用户等级"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">用户粉丝数</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.fansNum" placeholder="用户粉丝数"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证正面</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.identityFront" placeholder="身份证正面"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证反面</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.identityContrary" placeholder="身份证反面"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">驾驶证</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.driveLicence" placeholder="驾驶证"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">行驶证</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.runLicence" placeholder="行驶证"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">司机状态，0 接单，1 休息，2 提前发车， 默认0</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.status" placeholder="司机状态，0 接单，1 休息，2 提前发车， 默认0"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">评分</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.evaluateNum" placeholder="评分"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">评论人数，累加</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.commentPeople" placeholder="评论人数，累加"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="userInfo.createTime" placeholder="创建时间"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>
<script src="${request.contextPath}/statics/plugins/jquery.form.js"></script>
<script src="${request.contextPath}/statics/js/modules/sys/userinfo.js?_${.now?long}"></script>
</body>
</html>